fix(android): preserve account-owned background uploads - #438
fix(android): preserve account-owned background uploads#438veryCrunchy wants to merge 7 commits into
Conversation
Obiente previewNC Native · Obiente updates this comment as the preview changes. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
8d19892 to
5fee12e
Compare
5fee12e to
654502d
Compare
654502d to
2e7e5df
Compare
2e7e5df to
d98ac8b
Compare
d98ac8b to
d43e912
Compare
d43e912 to
26d99f0
Compare
26d99f0 to
f6abf67
Compare
f6abf67 to
dbc5557
Compare
dbc5557 to
0fcf2cd
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0fcf2cd434
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
0fcf2cd to
19e35dc
Compare
e5c9890 to
16e02eb
Compare
b3924b8 to
3df6577
Compare
45835cd to
408c9de
Compare
408c9de to
efc3f39
Compare
2b5f509 to
307858b
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 307858bcc0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
307858b to
5e6fc01
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 757c4917e0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| internal suspend fun <Result> captureDurableUploadRequestOutcome( | ||
| request: suspend () -> Result, | ||
| ): kotlin.Result<Result> = try { |
There was a problem hiding this comment.
Keep the upload outcome helper with its owner
This new 13-line production file contains only a single helper used by DeckAttachmentUploadWorker, while AndroidDurableMultipartUploads.kt grows from 792 to exactly 799 lines. The helper is part of that worker's request state transition rather than an independently changing concept, so this splits code solely to stay under the 800-line limit; remove obsolete code to make room for it in the cohesive owner, or extract a genuinely independent upload-execution owner.
AGENTS.md reference: AGENTS.md:L211-L213
Useful? React with 👍 / 👎.
What changed
Why
A queued upload for account A was permanently marked failed and its persisted URI capability was released when account B became active. The durable store already recorded A as the owner, but the worker ignored it when choosing credentials.
Validation
On the dedicated Linux build host, from exact parent #436 head
cd2b6de4156e42c9be02840d264790dc5c23a4e4:AndroidDurableMultipartUploadPolicyTest:androidApp:assembleDebugbash tools/check-kotlin-architecture.shbash tools/check-repository.sh, repeated after binding PR fix(android): preserve account-owned background uploads #438 in the changelog fragmentLimits
Found by the code-first account-isolation audit. Depends on #436.